#include "Observer.h"
#include "Subject.h"

void NBAObserver::Update() {
    std::cout << "看NBA的同事收到消息：" << sub->SubjectState << std::endl;
}

void StockObserver::Update() {
    std::cout << "看股票的同事收到消息："<< sub->SubjectState << std::endl;
}